package com.eascs.web.o2o.scheduler.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "o2o_loanapply")
public class O2oLoanapplyEntity {

	/**
	 * 贷款id，关联主使用程序生成
	 */
	@Column(name = "loanapply_no")
	@Id
	private String loanapplyNo;
	
	/**
	 * 单据编号
	 */
	@Column(name = "bill_code")
	private String billCode;
	
	/**
	 * 创建人no
	 */
	@Column(name = "creat_ro")
	private String creatRo;
	
	/**
	 * 创建日期
	 */
	@Column(name = "create_date")
	private Date createDate;
	/**
	 * 提交人
	 */
	@Column(name = "submit_ro")
	private String submitRo;

	/**
	 * 提交日期
	 */
	@Column(name = "submit_date")
	private Date submitDate;

	/**
	 * 最后更新人
	 */
	@Column(name = "end_ro")
	private String endRo;

	/**
	 * 最后更新时间
	 */
	@Column(name = "end_date")
	private Date endDate;

	/**
	 * 是否删除 y-是 n-不是
	 */
	@Column(name = "islock")
	private String islock;

	/**
	 * 贷款申请金额
	 */
	@Column(name = "loana_mount")
	private BigDecimal loanaMount;
	/**
	 * 银行批复额度
	 */
	@Column(name = "bank_amount")
	private BigDecimal bankAmount;
	/**
	 * 贷款期限
	 */
	@Column(name = "loan_term")
	private int loanTerm;

	/**
	 * 还款方式
	 */
	@Column(name = "repay_mentway")
	private String repayMentway;

	/**
	 * 担保方式
	 */
	@Column(name = "guar_antee_way")
	private String guarAnteeWay;

	/**
	 * 还款来源
	 */
	@Column(name = "repayment_source")
	private String repaymentSource;

	/**
	 * 客户no
	 */
	@Column(name = "customer_no")
	private String customerNo;

	/**
	 * 客户编码
	 */
	@Column(name = "customer_code")
	private String customerCode;

	/**
	 * 客户名称
	 */
	@Column(name = "custome_rname")
	private String customeRname;

	/**
	 * 银行卡号
	 */
	@Column(name = "bank_account")
	private String bankAccount;

	/**
	 * 经办人no
	 */
	@Column(name = "operator_no")
	private String operatorNo;

	/**
	 * 经办人姓名
	 */
	@Column(name = "operator_name")
	private String operatorName;

	/**
	 * 贷款利率
	 */
	@Column(name = "loanrate")
	private BigDecimal loanrate;

	/**
	 * 经营单位ID
	 */
	@Column(name = "ltd")
	private String ltd;

	/**
	 * 经营单位编号
	 */
	@Column(name = "ltd_code")
	private String ltdCode;

	/**
	 * 经营单位名称
	 */
	@Column(name = "ltd_name")
	private String ltdName;

	/**
	 * 银行状态
	 */
	@Column(name = "bank_status")
	private String bankStatus;

	/**
	 * 银行申请唯一流水号
	 */
	@Column(name = "bank_applyno")
	private String bankApplyno;
	/**
	 * 管理费-费率
	 */
	@Column(name = "risk")
	private BigDecimal risk;

	/**
	 * 管理费-费率
	 */
	@Column(name = "managefeerate")
	private BigDecimal managefeerate;

	/**
	 * 保证金-费率
	 */
	@Column(name = "depositrate")
	private BigDecimal depositrate;

	/**
	 * 与怡亚通（含前身）合作开始时间
	 */
	@Column(name = "ea_cooperation_date")
	private Date eaCooperationDate;

	/**
	 * 向怡亚通月均采购额（以近6个月金额为标准）
	 */
	@Column(name = "ea_purchaseamount")
	private BigDecimal eaPurchaseamount;

	/**
	 * 客户年销售额 /元
	 */
	@Column(name = "customer_salesamount")
	private BigDecimal customerSalesamount;

	/**
	 * 送审银行
	 */
	@Column(name = "bank_type")
	private String bankType;

	/**
	 * 数椐来源
	 */
	@Column(name = "data_source")
	private String dataSource;

	/**
	 * 贷款申请合同
	 */
	@Column(name = "instrument_number")
	private String instrumentNumber;
	
	/**
	 * 是否续贷1：续贷 其他：非续贷
	 */
	@Column(name = "isrenew")
	private String isrenew;
	
	/**
	 * 银行序号(1605171708010520000)
	 */
	@Column(name = "bank_osn")
	private String bankOsn;
	
	/**
	 * 贷款发放开户行
	 */
	@Column(name = "receive_bank")
	private String receiveBank;
	
	/**
	 * 预审批额度
	 */
	@Column(name = "creditline")
	private BigDecimal creditline;
	
	/**
	 * 信用范围
	 */
	@Column(name = "creditrange")
	private String creditRange;
	
	/**
	 * 银行是否已放款y：是 n：否
	 */
	@Column(name = "loan_flg")
	private String loanFlg;
	
	/**
	 * 银行贷款账号
	 */
	@Column(name = "bank_actno")
	private String bankActno;
	
	/**
	 * 贷款申请  y：是 n：否
	 */
	@Column(name = "bank_flg")
	private String bankFlg;
	
	/**
	 * 客户类别
	 */
	@Column(name = "customer_type")
	private String customerType;
 
	/**
	 * 产品类别
	 */
	@Column(name = "loan_type")
	private String loanType;
	
	/**
	 *管理费和保证金实际到帐日期
	 */
	@Column(name = "pay_date")
	private String payDate;
	
	/**
	 * 主次关联关系
	 */
	@Column(name = "loanapplyno_main")
	private String loanapplynoMain;
	
	/**
	 * 备注信息
	 */
	@Column(name = "remark")
	private String remark;
	/**
	 * 关联客户ID
	 */
	@Column(name="loan_id")
	private String loanId;
	/**
	 * 主表大状态
	 */
	@Column(name="wf_type")
	private String wfType;

	/**
	 * 与怡亚通合作前6个月平均进货件数
	 */
	@Column(name="ea_stock_num")
	private int eaStockNum;
	
	/**
	 * 与怡亚通合作前6个月回款总金额
	 */
	@Column(name="ea_returned_amount")
	private BigDecimal eaReturnedAmount;
	
	/**
	 * 存量借款总金额
	 */
	@Column(name="ea_stock_borrowing")
	private BigDecimal eaStockBorrowing;
	
	/**
	 * 放款银行
	 */
	@Column(name="bank_loan_name")
	private String bankLoanName;
	/**
	 * EA批复额度
	 */
	@Column(name="ea_mount")
	private BigDecimal eaMount;
	/**
	 * 贷款用途
	 */
	@Column(name="payment_type")
	private String paymentType;
	/**
	 * 综合费率
	 */
	@Column(name="generalrate")
	private BigDecimal generalRate;
	/**
	 * 放款时间
	 */
	@Column(name="payment_time")
	private Date paymentTime;
	/**
	 * 合同是否齐备
	 * 
	 */
	@Column(name="contract_flag")
	private String contractFlag;
	/**
	 * 借款人银行卡开户银行
	 */
	@Column(name="open_account_bank")
	private String openAccountBank;
	
	public String getLoanapplyNo() {
		return loanapplyNo;
	}

	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getCreatRo() {
		return creatRo;
	}

	public void setCreatRo(String creatRo) {
		this.creatRo = creatRo;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getSubmitRo() {
		return submitRo;
	}

	public void setSubmitRo(String submitRo) {
		this.submitRo = submitRo;
	}

	public Date getSubmitDate() {
		return submitDate;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public String getEndRo() {
		return endRo;
	}

	public void setEndRo(String endRo) {
		this.endRo = endRo;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getIslock() {
		return islock;
	}

	public void setIslock(String islock) {
		this.islock = islock;
	}

	public BigDecimal getLoanaMount() {
		return loanaMount;
	}

	public void setLoanaMount(BigDecimal loanaMount) {
		this.loanaMount = loanaMount;
	}

	public int getLoanTerm() {
		return loanTerm;
	}

	public void setLoanTerm(int loanTerm) {
		this.loanTerm = loanTerm;
	}

	public String getRepayMentway() {
		return repayMentway;
	}

	public void setRepayMentway(String repayMentway) {
		this.repayMentway = repayMentway;
	}

	public String getGuarAnteeWay() {
		return guarAnteeWay;
	}

	public void setGuarAnteeWay(String guarAnteeWay) {
		this.guarAnteeWay = guarAnteeWay;
	}

	public String getRepaymentSource() {
		return repaymentSource;
	}

	public void setRepaymentSource(String repaymentSource) {
		this.repaymentSource = repaymentSource;
	}

	public String getCustomerNo() {
		return customerNo;
	}

	public void setCustomerNo(String customerNo) {
		this.customerNo = customerNo;
	}

	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getCustomeRname() {
		return customeRname;
	}

	public void setCustomeRname(String customeRname) {
		this.customeRname = customeRname;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getOperatorNo() {
		return operatorNo;
	}

	public void setOperatorNo(String operatorNo) {
		this.operatorNo = operatorNo;
	}

	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	public BigDecimal getLoanrate() {
		return loanrate;
	}

	public void setLoanrate(BigDecimal loanrate) {
		this.loanrate = loanrate;
	}

	public String getLtd() {
		return ltd;
	}

	public void setLtd(String ltd) {
		this.ltd = ltd;
	}

	public String getLtdCode() {
		return ltdCode;
	}

	public void setLtdCode(String ltdCode) {
		this.ltdCode = ltdCode;
	}

	public String getLtdName() {
		return ltdName;
	}

	public void setLtdName(String ltdName) {
		this.ltdName = ltdName;
	}

	public String getBankStatus() {
		return bankStatus;
	}

	public void setBankStatus(String bankStatus) {
		this.bankStatus = bankStatus;
	}

	public String getBankApplyno() {
		return bankApplyno;
	}

	public void setBankApplyno(String bankApplyno) {
		this.bankApplyno = bankApplyno;
	}

	public BigDecimal getManagefeerate() {
		return managefeerate;
	}

	public void setManagefeerate(BigDecimal managefeerate) {
		this.managefeerate = managefeerate;
	}

	public BigDecimal getDepositrate() {
		return depositrate;
	}

	public void setDepositrate(BigDecimal depositrate) {
		this.depositrate = depositrate;
	}

	public Date getEaCooperationDate() {
		return eaCooperationDate;
	}

	public void setEaCooperationDate(Date eaCooperationDate) {
		this.eaCooperationDate = eaCooperationDate;
	}

	public BigDecimal getEaPurchaseamount() {
		return eaPurchaseamount;
	}

	public void setEaPurchaseamount(BigDecimal eaPurchaseamount) {
		this.eaPurchaseamount = eaPurchaseamount;
	}

	public BigDecimal getCustomerSalesamount() {
		return customerSalesamount;
	}

	public void setCustomerSalesamount(BigDecimal customerSalesamount) {
		this.customerSalesamount = customerSalesamount;
	}

	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String getInstrumentNumber() {
		return instrumentNumber;
	}

	public void setInstrumentNumber(String instrumentNumber) {
		this.instrumentNumber = instrumentNumber;
	}

	public String getIsrenew() {
		return isrenew;
	}

	public void setIsrenew(String isrenew) {
		this.isrenew = isrenew;
	}

	public String getBankOsn() {
		return bankOsn;
	}

	public void setBankOsn(String bankOsn) {
		this.bankOsn = bankOsn;
	}

	public String getReceiveBank() {
		return receiveBank;
	}

	public void setReceiveBank(String receiveBank) {
		this.receiveBank = receiveBank;
	}

	public BigDecimal getCreditline() {
		return creditline;
	}

	public void setCreditline(BigDecimal creditline) {
		this.creditline = creditline;
	}

	public String getCreditRange() {
		return creditRange;
	}

	public void setCreditRange(String creditRange) {
		this.creditRange = creditRange;
	}

	public String getLoanFlg() {
		return loanFlg;
	}

	public void setLoanFlg(String loanFlg) {
		this.loanFlg = loanFlg;
	}

	public String getBankActno() {
		return bankActno;
	}

	public void setBankActno(String bankActno) {
		this.bankActno = bankActno;
	}

	public String getBankFlg() {
		return bankFlg;
	}

	public void setBankFlg(String bankFlg) {
		this.bankFlg = bankFlg;
	}

	public String getCustomerType() {
		return customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	public String getLoanType() {
		return loanType;
	}

	public void setLoanType(String loanType) {
		this.loanType = loanType;
	}

	public String getPayDate() {
		return payDate;
	}

	public void setPayDate(String payDate) {
		this.payDate = payDate;
	}

	public String getLoanapplynoMain() {
		return loanapplynoMain;
	}

	public void setLoanapplynoMain(String loanapplynoMain) {
		this.loanapplynoMain = loanapplynoMain;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getLoanId() {
		return loanId;
	}

	public void setLoanId(String loanId) {
		this.loanId = loanId;
	}

	public String getWfType() {
		return wfType;
	}

	public void setWfType(String wfType) {
		this.wfType = wfType;
	}

	public int getEaStockNum() {
		return eaStockNum;
	}

	public void setEaStockNum(int eaStockNum) {
		this.eaStockNum = eaStockNum;
	}

	public BigDecimal getEaReturnedAmount() {
		return eaReturnedAmount;
	}

	public void setEaReturnedAmount(BigDecimal eaReturnedAmount) {
		this.eaReturnedAmount = eaReturnedAmount;
	}

	public BigDecimal getEaStockBorrowing() {
		return eaStockBorrowing;
	}

	public void setEaStockBorrowing(BigDecimal eaStockBorrowing) {
		this.eaStockBorrowing = eaStockBorrowing;
	}

	public BigDecimal getBankAmount() {
		return bankAmount;
	}

	public void setBankAmount(BigDecimal bankAmount) {
		this.bankAmount = bankAmount;
	}

	public String getBankLoanName() {
		return bankLoanName;
	}

	public void setBankLoanName(String bankLoanName) {
		this.bankLoanName = bankLoanName;
	}

	public BigDecimal getRisk() {
		return risk;
	}

	public void setRisk(BigDecimal risk) {
		this.risk = risk;
	}

	public BigDecimal getEaMount() {
		return eaMount;
	}

	public void setEaMount(BigDecimal eaMount) {
		this.eaMount = eaMount;
	}

	public String getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public BigDecimal getGeneralRate() {
		return generalRate;
	}

	public void setGeneralRate(BigDecimal generalRate) {
		this.generalRate = generalRate;
	}

	public Date getPaymentTime() {
		return paymentTime;
	}

	public void setPaymentTime(Date paymentTime) {
		this.paymentTime = paymentTime;
	}

	public String getContractFlag() {
		return contractFlag;
	}

	public void setContractFlag(String contractFlag) {
		this.contractFlag = contractFlag;
	}

	public String getOpenAccountBank() {
		return openAccountBank;
	}

	public void setOpenAccountBank(String openAccountBank) {
		this.openAccountBank = openAccountBank;
	}
}
